package cn.lh.org.mapper;

import cn.lh.basic.mapper.BaseMapper;
import cn.lh.org.domain.Employee;
import cn.lh.org.query.EmployeeQuery;
import cn.lh.system.domain.Menu;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EmployeeMapper extends BaseMapper<Employee> {

    List<Employee> findByShopId(Long shopId);

    void saveEmployeeRole(@Param("employeeId") Long employeeId, @Param("roleId") Long roleId);

    void removeEmployeeRoleByEmployeeId(Long id);

    List<String> loadPermissionsByLogininfoId(Long id);

    List<Menu> loadMenusByLogininfoId(Long id);

    Employee loadByLogininfoId(Long id);
}